package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.ConstructionLabel;
import com.ruoyi.system.mapper.construction.ConstructionLabelMapper;
import com.ruoyi.system.service.construction.ConstructionLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConstructionLabelServiceImpl  implements ConstructionLabelService {

    @Autowired(required = false)
    private ConstructionLabelMapper constructionLabelMapper;


    @Override
    public List<ConstructionLabel> findAllList(Long constructionId) {
        return constructionLabelMapper.findAllList(constructionId);
    }

    @Override
    public ConstructionLabel selectConstructionLabelById(Long labelId) {
        return constructionLabelMapper.selectConstructionLabelById(labelId);
    }

    @Override
    public List<ConstructionLabel> selectConstructionLabelList(Integer constructionPicId) {
        return constructionLabelMapper.selectConstructionLabelList(constructionPicId);
    }

    @Override
    public int insertConstructionLabel(ConstructionLabel constructionLabel) {
        return constructionLabelMapper.insertConstructionLabel(constructionLabel);
    }

    @Override
    public int updateConstructionLabel(ConstructionLabel constructionLabel) {
        return constructionLabelMapper.updateConstructionLabel(constructionLabel);
    }

    @Override
    public int deleteConstructionLabelById(Long labelId) {
        return constructionLabelMapper.deleteConstructionLabelById(labelId);
    }

    @Override
    public int deleteConstructionLabelByIds(Long[] labelIds) {
        return constructionLabelMapper.deleteConstructionLabelByIds(labelIds);
    }
}
